package mapper.marketingMapper;

import entity.marketingEntity.NewMarketingCondition;
import entity.marketingEntity.Newmarketing;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewmarketingMapper {
    List<Newmarketing> selectAll(NewMarketingCondition condition);
    int deleteByPrimaryKey(Integer newmarketing_id);

    int insert(Newmarketing record);

    int insertSelective(Newmarketing record);

    Newmarketing selectByPrimaryKey(Integer newmarketing_id);

    int updateByPrimaryKeySelective(Newmarketing record);

    int updateByPrimaryKey(Newmarketing record);
    int updateNewMarkingRecommend(@Param("id") Integer id, @Param("recommend")  Integer recommend);

    int updateNewMarkingSort(@Param("id") Integer id,@Param("sort")  Integer sort);
}